<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>p4vasp.message</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="p4vasp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="../index.html">p4vasp</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="p4vasp-module.html">Package&nbsp;p4vasp</a> ::
        Module&nbsp;message
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="p4vasp.message-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="p4vasp.message-module.html">Module p4vasp.message</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"># HappyDoc:docStringFormat='ClassicStructuredText'</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment">#  p4vasp is a GUI-program and a library for processing outputs of the</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment">#  Vienna Ab-inition Simulation Package (VASP)</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment">#  (see http://cms.mpi.univie.ac.at/vasp/Welcome.html)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment">#  Copyright (C) 2003  Orest Dubay &lt;odubay@users.sourceforge.net&gt;</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment">#  This program is free software; you can redistribute it and/or modify</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment">#  it under the terms of the GNU General Public License as published by</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment">#  the Free Software Foundation; either version 2 of the License, or</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-comment">#  (at your option) any later version.</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-comment">#  This program is distributed in the hope that it will be useful,</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-comment">#  but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-comment">#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-comment">#  GNU General Public License for more details.</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-comment">#   You should have received a copy of the GNU General Public License</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-comment">#  along with this program; if not, write to the Free Software</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-comment">#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">sys</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">traceback</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">string</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
<a name="DummyFile"></a><div id="DummyFile-def"><a name="L29"></a><tt class="py-lineno"> 29</tt> <a class="py-toggle" href="#" id="DummyFile-toggle" onclick="return toggle('DummyFile');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="p4vasp.message.DummyFile-class.html">DummyFile</a><tt class="py-op">:</tt> </tt>
</div><div id="DummyFile-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="DummyFile-expanded"><a name="DummyFile.write"></a><div id="DummyFile.write-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="DummyFile.write-toggle" onclick="return toggle('DummyFile.write');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.DummyFile-class.html#write">write</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DummyFile.write-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DummyFile.write-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="DummyFile.close"></a><div id="DummyFile.close-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="DummyFile.close-toggle" onclick="return toggle('DummyFile.close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.DummyFile-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DummyFile.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DummyFile.close-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="DummyFile.flush"></a><div id="DummyFile.flush-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="DummyFile.flush-toggle" onclick="return toggle('DummyFile.flush');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.DummyFile-class.html#flush">flush</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="DummyFile.flush-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="DummyFile.flush-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div></div><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"> </tt>
<a name="PrintFile"></a><div id="PrintFile-def"><a name="L37"></a><tt class="py-lineno"> 37</tt> <a class="py-toggle" href="#" id="PrintFile-toggle" onclick="return toggle('PrintFile');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="p4vasp.message.PrintFile-class.html">PrintFile</a><tt class="py-op">:</tt> </tt>
</div><div id="PrintFile-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PrintFile-expanded"><a name="PrintFile.write"></a><div id="PrintFile.write-def"><a name="L38"></a><tt class="py-lineno"> 38</tt> <a class="py-toggle" href="#" id="PrintFile.write-toggle" onclick="return toggle('PrintFile.write');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.PrintFile-class.html#write">write</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrintFile.write-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PrintFile.write-expanded"><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-name">x</tt> </tt>
</div><a name="PrintFile.close"></a><div id="PrintFile.close-def"><a name="L40"></a><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="PrintFile.close-toggle" onclick="return toggle('PrintFile.close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.PrintFile-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrintFile.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PrintFile.close-expanded"><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="PrintFile.flush"></a><div id="PrintFile.flush-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <a class="py-toggle" href="#" id="PrintFile.flush-toggle" onclick="return toggle('PrintFile.flush');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.PrintFile-class.html#flush">flush</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrintFile.flush-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PrintFile.flush-expanded"><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div></div><a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
<a name="indent"></a><div id="indent-def"><a name="L45"></a><tt class="py-lineno"> 45</tt> <a class="py-toggle" href="#" id="indent-toggle" onclick="return toggle('indent');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message-module.html#indent">indent</a><tt class="py-op">(</tt><tt class="py-param">s</tt><tt class="py-op">,</tt><tt class="py-param">istring</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="indent-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="indent-expanded"><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt class="py-docstring">"""Intend *s* by *istring*.</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt class="py-docstring">    If istring is an iteger, istring is changed to istring*INDENT</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">    (INDENT contains two whitespaces by default).</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">    Then *istring* is added to the beginning of every line of *s*.</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt class="py-name">l</tt><tt class="py-op">=</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-0" class="py-name" targets="Method p4vasp.cStructure.Structure.len()=p4vasp.cStructure.Structure-class.html#len"><a title="p4vasp.cStructure.Structure.len" class="py-name" href="#" onclick="return doclink('link-0', 'len', 'link-0');">len</a></tt><tt class="py-op">(</tt><tt class="py-name">l</tt><tt class="py-op">)</tt><tt class="py-op">&lt;</tt><tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">s</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-string">"\n"</tt><tt class="py-op">+</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">,</tt><tt id="link-1" class="py-name" targets="Variable p4vasp.paint3d.OpenGLPaint3D.i=p4vasp.paint3d.OpenGLPaint3D-module.html#i"><a title="p4vasp.paint3d.OpenGLPaint3D.i" class="py-name" href="#" onclick="return doclink('link-1', 'i', 'link-1');">i</a></tt><tt class="py-op">=</tt><tt class="py-name">istring</tt><tt class="py-op">:</tt><tt id="link-2" class="py-name"><a title="p4vasp.paint3d.OpenGLPaint3D.i" class="py-name" href="#" onclick="return doclink('link-2', 'i', 'link-1');">i</a></tt><tt class="py-op">+</tt><tt class="py-name">x</tt><tt class="py-op">,</tt> <tt class="py-name">l</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">"\n"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver"></a><div id="MessageDriver-def"><a name="L57"></a><tt class="py-lineno"> 57</tt> <a class="py-toggle" href="#" id="MessageDriver-toggle" onclick="return toggle('MessageDriver');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html">MessageDriver</a><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="MessageDriver-expanded"><a name="MessageDriver.__init__"></a><div id="MessageDriver.__init__-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="MessageDriver.__init__-toggle" onclick="return toggle('MessageDriver.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">logfile</tt><tt class="py-op">=</tt><tt id="link-3" class="py-name" targets="Class p4vasp.message.DummyFile=p4vasp.message.DummyFile-class.html"><a title="p4vasp.message.DummyFile" class="py-name" href="#" onclick="return doclink('link-3', 'DummyFile', 'link-3');">DummyFile</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-param">closeflag</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-param">printing</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.__init__-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">closeflag</tt><tt class="py-op">=</tt><tt class="py-name">closeflag</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">printing</tt><tt class="py-op">=</tt><tt class="py-name">printing</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">logfile</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">""</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">                <tt class="py-name">logfile</tt><tt class="py-op">=</tt><tt class="py-name">open</tt><tt class="py-op">(</tt><tt class="py-name">logfile</tt><tt class="py-op">,</tt><tt class="py-string">"w"</tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">closeflag</tt><tt class="py-op">=</tt><tt class="py-number">1</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">                <tt class="py-name">logfile</tt><tt class="py-op">=</tt><tt id="link-4" class="py-name" targets="Class p4vasp.message.PrintFile=p4vasp.message.PrintFile-class.html"><a title="p4vasp.message.PrintFile" class="py-name" href="#" onclick="return doclink('link-4', 'PrintFile', 'link-4');">PrintFile</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">closeflag</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">=</tt><tt class="py-name">logfile</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pstep</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.printText"></a><div id="MessageDriver.printText-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="MessageDriver.printText-toggle" onclick="return toggle('MessageDriver.printText');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#printText">printText</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.printText-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.printText-expanded"><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">printing</tt><tt class="py-op">:</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.status"></a><div id="MessageDriver.status-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="MessageDriver.status-toggle" onclick="return toggle('MessageDriver.status');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#status">status</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.status-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.status-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method p4vasp.message.MessageDriver.printText()=p4vasp.message.MessageDriver-class.html#printText"><a title="p4vasp.message.MessageDriver.printText" class="py-name" href="#" onclick="return doclink('link-5', 'printText', 'link-5');">printText</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Method p4vasp.Dictionary.Incar.write()=p4vasp.Dictionary.Incar-class.html#write,Method p4vasp.Structure.Structure.write()=p4vasp.Structure.Structure-class.html#write,Method p4vasp.SystemPM.SetupPM.write()=p4vasp.SystemPM.SetupPM-class.html#write,Method p4vasp.cStructure.Structure.write()=p4vasp.cStructure.Structure-class.html#write,Method p4vasp.cmatrix.Vector.write()=p4vasp.cmatrix.Vector-class.html#write,Method p4vasp.matrix.Vector.write()=p4vasp.matrix.Vector-class.html#write,Method p4vasp.message.DummyFile.write()=p4vasp.message.DummyFile-class.html#write,Method p4vasp.message.PrintFile.write()=p4vasp.message.PrintFile-class.html#write,Method p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write()=p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D-class.html#write,Method p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write()=p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D-class.html#write,Method p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write()=p4vasp.paint3d.Paint3DInterface.Paint3DInterface-class.html#write,Method p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write()=p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D-class.html#write,Method p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write()=p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D-class.html#write,Method p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write()=p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame-class.html#write,Method p4vasp.store.AttributeProfile.write()=p4vasp.store.AttributeProfile-class.html#write,Method p4vasp.store.Profile.write()=p4vasp.store.Profile-class.html#write"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-6', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"STATUS:%s\n"</tt><tt class="py-op">%</tt><tt id="link-7" class="py-name" targets="Function p4vasp.message.indent()=p4vasp.message-module.html#indent,Function p4vasp.util.indent()=p4vasp.util-module.html#indent"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-7', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Method p4vasp.message.DummyFile.flush()=p4vasp.message.DummyFile-class.html#flush,Method p4vasp.message.PrintFile.flush()=p4vasp.message.PrintFile-class.html#flush"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-8', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.error"></a><div id="MessageDriver.error-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="MessageDriver.error-toggle" onclick="return toggle('MessageDriver.error');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#error">error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.error-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.error-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">printing</tt><tt class="py-op">:</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">            <tt id="link-9" class="py-name" targets="Variable p4vasp.Array.stderr=p4vasp.Array-module.html#stderr,Variable p4vasp.Dictionary.stderr=p4vasp.Dictionary-module.html#stderr,Variable p4vasp.Structure.stderr=p4vasp.Structure-module.html#stderr,Variable p4vasp.message.stderr=p4vasp.message-module.html#stderr,Variable p4vasp.repository.stderr=p4vasp.repository-module.html#stderr,Variable p4vasp.schedule'.stderr=p4vasp.schedule%27-module.html#stderr,Variable p4vasp.store.stderr=p4vasp.store-module.html#stderr,Variable p4vasp.util.stderr=p4vasp.util-module.html#stderr"><a title="p4vasp.Array.stderr
p4vasp.Dictionary.stderr
p4vasp.Structure.stderr
p4vasp.message.stderr
p4vasp.repository.stderr
p4vasp.schedule'.stderr
p4vasp.store.stderr
p4vasp.util.stderr" class="py-name" href="#" onclick="return doclink('link-9', 'stderr', 'link-9');">stderr</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-10', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"ERROR : %s\n"</tt><tt class="py-op">%</tt><tt id="link-11" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-11', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-12', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"ERROR : %s\n"</tt><tt class="py-op">%</tt><tt id="link-13" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-13', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-14', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.step"></a><div id="MessageDriver.step-def"><a name="L87"></a><tt class="py-lineno"> 87</tt> <a class="py-toggle" href="#" id="MessageDriver.step-toggle" onclick="return toggle('MessageDriver.step');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#step">step</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">step</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">total</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.step-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.step-expanded"><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-15" class="py-name" targets="Method p4vasp.message.MessageDriver.step()=p4vasp.message.MessageDriver-class.html#step,Method p4vasp.schedule'.Process.step()=p4vasp.schedule%27.Process-class.html#step"><a title="p4vasp.message.MessageDriver.step
p4vasp.schedule'.Process.step" class="py-name" href="#" onclick="return doclink('link-15', 'step', 'link-15');">step</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-op">(</tt><tt id="link-16" class="py-name" targets="Method p4vasp.schedule'.Process.total()=p4vasp.schedule%27.Process-class.html#total"><a title="p4vasp.schedule'.Process.total" class="py-name" href="#" onclick="return doclink('link-16', 'total', 'link-16');">total</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="p4vasp.schedule'.Process.total" class="py-name" href="#" onclick="return doclink('link-17', 'total', 'link-16');">total</a></tt><tt class="py-op">&lt;=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pstep</tt><tt class="py-op">+=</tt><tt class="py-number">1</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">            <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-string">"-/|\\"</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt id="link-18" class="py-name" targets="Variable p4vasp.Array.stdout=p4vasp.Array-module.html#stdout,Variable p4vasp.Dictionary.stdout=p4vasp.Dictionary-module.html#stdout,Variable p4vasp.Structure.stdout=p4vasp.Structure-module.html#stdout,Variable p4vasp.message.stdout=p4vasp.message-module.html#stdout,Variable p4vasp.repository.stdout=p4vasp.repository-module.html#stdout,Variable p4vasp.schedule'.stdout=p4vasp.schedule%27-module.html#stdout,Variable p4vasp.store.stdout=p4vasp.store-module.html#stdout,Variable p4vasp.util.stdout=p4vasp.util-module.html#stdout"><a title="p4vasp.Array.stdout
p4vasp.Dictionary.stdout
p4vasp.Structure.stdout
p4vasp.message.stdout
p4vasp.repository.stdout
p4vasp.schedule'.stdout
p4vasp.store.stdout
p4vasp.util.stdout" class="py-name" href="#" onclick="return doclink('link-18', 'stdout', 'link-18');">stdout</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-19', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"Progress: %s\r"</tt><tt class="py-op">%</tt><tt class="py-name">s</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">pstep</tt><tt class="py-op">%</tt><tt class="py-number">4</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt id="link-20" class="py-name"><a title="p4vasp.Array.stdout
p4vasp.Dictionary.stdout
p4vasp.Structure.stdout
p4vasp.message.stdout
p4vasp.repository.stdout
p4vasp.schedule'.stdout
p4vasp.store.stdout
p4vasp.util.stdout" class="py-name" href="#" onclick="return doclink('link-20', 'stdout', 'link-18');">stdout</a></tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-21', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"Progress: %4d/%4d %s\r"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt id="link-22" class="py-name"><a title="p4vasp.message.MessageDriver.step
p4vasp.schedule'.Process.step" class="py-name" href="#" onclick="return doclink('link-22', 'step', 'link-15');">step</a></tt><tt class="py-op">,</tt><tt id="link-23" class="py-name"><a title="p4vasp.schedule'.Process.total" class="py-name" href="#" onclick="return doclink('link-23', 'total', 'link-16');">total</a></tt><tt class="py-op">,</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-number">20.0</tt><tt class="py-op">*</tt><tt id="link-24" class="py-name"><a title="p4vasp.message.MessageDriver.step
p4vasp.schedule'.Process.step" class="py-name" href="#" onclick="return doclink('link-24', 'step', 'link-15');">step</a></tt><tt class="py-op">/</tt><tt id="link-25" class="py-name"><a title="p4vasp.schedule'.Process.total" class="py-name" href="#" onclick="return doclink('link-25', 'total', 'link-16');">total</a></tt><tt class="py-op">)</tt><tt class="py-op">*</tt><tt class="py-string">"#"</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.message"></a><div id="MessageDriver.message-def"><a name="L96"></a><tt class="py-lineno"> 96</tt> <a class="py-toggle" href="#" id="MessageDriver.message-toggle" onclick="return toggle('MessageDriver.message');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#message">message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.message-expanded"><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="p4vasp.message.MessageDriver.printText" class="py-name" href="#" onclick="return doclink('link-26', 'printText', 'link-5');">printText</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-27', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"MSG   :%s\n"</tt><tt class="py-op">%</tt><tt id="link-28" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-28', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-29', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.confirm"></a><div id="MessageDriver.confirm-def"><a name="L101"></a><tt class="py-lineno">101</tt> <a class="py-toggle" href="#" id="MessageDriver.confirm-toggle" onclick="return toggle('MessageDriver.confirm');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#confirm">confirm</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.confirm-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.confirm-expanded"><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="p4vasp.message.MessageDriver.printText" class="py-name" href="#" onclick="return doclink('link-30', 'printText', 'link-5');">printText</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-31', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"CMSG  :%s\n"</tt><tt class="py-op">%</tt><tt id="link-32" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-32', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-33', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-name">raw_input</tt><tt class="py-op">(</tt><tt class="py-string">"Press ENTER to continue..."</tt><tt class="py-op">)</tt> </tt>
</div><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.confirm_error"></a><div id="MessageDriver.confirm_error-def"><a name="L107"></a><tt class="py-lineno">107</tt> <a class="py-toggle" href="#" id="MessageDriver.confirm_error-toggle" onclick="return toggle('MessageDriver.confirm_error');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#confirm_error">confirm_error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">txt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.confirm_error-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.confirm_error-expanded"><a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="p4vasp.message.MessageDriver.printText" class="py-name" href="#" onclick="return doclink('link-34', 'printText', 'link-5');">printText</a></tt><tt class="py-op">(</tt><tt class="py-string">"Error: "</tt><tt class="py-op">+</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-35', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"CERR  :%s\n"</tt><tt class="py-op">%</tt><tt id="link-36" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-36', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-37', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-name">raw_input</tt><tt class="py-op">(</tt><tt class="py-string">"Press ENTER to continue..."</tt><tt class="py-op">)</tt> </tt>
</div><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
<a name="MessageDriver.exception"></a><div id="MessageDriver.exception-def"><a name="L113"></a><tt class="py-lineno">113</tt> <a class="py-toggle" href="#" id="MessageDriver.exception-toggle" onclick="return toggle('MessageDriver.exception');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#exception">exception</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">etype</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">value</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">trace</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.exception-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.exception-expanded"><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">etype</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">            <tt class="py-name">etype</tt><tt class="py-op">,</tt><tt class="py-name">value</tt><tt class="py-op">,</tt><tt class="py-name">trace</tt><tt class="py-op">=</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">printing</tt><tt class="py-op">:</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">            <tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">print_exception</tt><tt class="py-op">(</tt><tt class="py-name">etype</tt><tt class="py-op">,</tt><tt class="py-name">value</tt><tt class="py-op">,</tt><tt class="py-name">trace</tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-name">txt</tt><tt class="py-op">=</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">format_exception</tt><tt class="py-op">(</tt><tt class="py-name">etype</tt><tt class="py-op">,</tt><tt class="py-name">value</tt><tt class="py-op">,</tt><tt class="py-name">trace</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="p4vasp.Dictionary.Incar.write
p4vasp.Structure.Structure.write
p4vasp.SystemPM.SetupPM.write
p4vasp.cStructure.Structure.write
p4vasp.cmatrix.Vector.write
p4vasp.matrix.Vector.write
p4vasp.message.DummyFile.write
p4vasp.message.PrintFile.write
p4vasp.paint3d.ColladaPaint3D.ColladaPaint3D.write
p4vasp.paint3d.OpenGLPaint3D.BasicOpenGLPaint3D.write
p4vasp.paint3d.Paint3DInterface.Paint3DInterface.write
p4vasp.paint3d.PovrayPaint3D.ExtendedPovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3D.write
p4vasp.paint3d.PovrayPaint3D.PovrayPaint3DFrame.write
p4vasp.store.AttributeProfile.write
p4vasp.store.Profile.write" class="py-name" href="#" onclick="return doclink('link-38', 'write', 'link-6');">write</a></tt><tt class="py-op">(</tt><tt class="py-string">"EXCEPT:%s\n"</tt><tt class="py-op">%</tt><tt id="link-39" class="py-name"><a title="p4vasp.message.indent
p4vasp.util.indent" class="py-name" href="#" onclick="return doclink('link-39', 'indent', 'link-7');">indent</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">,</tt><tt class="py-string">"       "</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-40', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="MessageDriver.__del__"></a><div id="MessageDriver.__del__-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="MessageDriver.__del__-toggle" onclick="return toggle('MessageDriver.__del__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="p4vasp.message.MessageDriver-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MessageDriver.__del__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="MessageDriver.__del__-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="p4vasp.message.DummyFile.flush
p4vasp.message.PrintFile.flush" class="py-name" href="#" onclick="return doclink('link-41', 'flush', 'link-8');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">closeflag</tt><tt class="py-op">:</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">logfile</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Method p4vasp.GraphCanvas.GraphCanvasWindow.close()=p4vasp.GraphCanvas.GraphCanvasWindow-class.html#close,Method p4vasp.GraphCanvas_gtk1.GraphCanvasWindow.close()=p4vasp.GraphCanvas_gtk1.GraphCanvasWindow-class.html#close,Method p4vasp.message.DummyFile.close()=p4vasp.message.DummyFile-class.html#close,Method p4vasp.message.PrintFile.close()=p4vasp.message.PrintFile-class.html#close"><a title="p4vasp.GraphCanvas.GraphCanvasWindow.close
p4vasp.GraphCanvas_gtk1.GraphCanvasWindow.close
p4vasp.message.DummyFile.close
p4vasp.message.PrintFile.close" class="py-name" href="#" onclick="return doclink('link-42', 'close', 'link-42');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="p4vasp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="../index.html">p4vasp</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Aug 16 22:08:13 2015
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
